<layout name="Common/layout" />
<include file="Common/left" />
			<!--左侧end-->
			<div class="ur_right">
				<!--uer_top-->
				<div class="ur_location">
					<a href="">我的快乐购</a>
					<span>&gt;</span>
					<a class="a_cur">我的订单</a>
				</div>
				<!--uer_top-->
				<div class="ur_r_list">
					<div class="ur_list_tab">
						<ul class="ur_tab_ul">
							<li class="on ">
								<a href="">全部订单</a>
							</li>
							<li>
								<a href="">待付款</a>
							</li>
							<li>
								<a href="">待发货</a>
							</li>
							<li>
								<a href="">待评价</a>
							</li>
						</ul>
						<div class="more_rk">
							<a href="" class="more_order">查看历史订单</a>
							<a href="" class="more_qqg_order">查看全球购订单&gt;&gt;</a>
						</div>
					</div>
					<table class="order_table">
						<thead class="thead">
							<tr>
								<td class="padding_40">
									<div class="select_div">
										<div class="select_h2">
											<span>近三月的订单</span>
											<b></b>
										</div>
										<div class="select_list">
											<ul>
												<li data-name="近三月的订单" class="cur">
													<a href=""><b></b>近三月的订单</a>
												</li>
												<li data-name="近半年的订单" class="">
													<a href=""><b></b>半年的订单</a>
												</li>
												<li data-name="最近一年的订单" class="">
													<a href=""><b></b>最近一年的订单</a>
												</li>
											</ul>
										</div>
									</div>
								</td>
								<td>订单金额</td>
								<td>交易状态</td>
								<td>交易操作</td>
							</tr>
						</thead>
						<tbody>
							<!--单号 时间-->
							<?php foreach ($data['data'] as $k => $v): ?>
							<tr class="tr_top">
								<td colspan="6">
									<span class="number">订单号：<a target="_blank" href=""><?php echo $v['id']; ?></a></span>
									<span class="dealtime" title="下单时间">下单时间：<?php echo date('Y-m-d H:i:s', $v['addtime']); ?></span>
								</td>
							</tr>
							<!--单号 时间-->
							<!--订单商品-->
							
							<tr class="tr_bd">
								<td class="goods-item">
									<div class="p-img">
										<a href="" target="_blank">
											<?php $_arr = explode(',', $v['logo']);foreach ($_arr as $k1 => $v1) showImage($v1); ?>
										</a>
									</div>
									<div class="p-msg">
										<div class="p-name">
											<a href="" class="a-link" target="_blank" title=""><?php echo $v['shr_name']; ?></a>
										</div>
									</div>
								</td>
								<td>
									<div class="goods_price">￥<?php echo $v['total_price']; ?></div>
								</td>
								<td>
									<div class="goods-number"><?php if($v['pay_status'] == '是'): ?>
								已支付
							<?php else: ?>
								<a class="btn_sure" href="{{:U('Order/order_success2',array('order_id'=>$v['id']))}}" >去付款&gt;</a>
								
							<?php endif; ?></div>
								</td>
								<td rowspan="1">
									<div class="amount"><span>￥<?php echo $v['total_price']; ?></span><br>（免运费）<br>在线支付</div>
								</td>
								<td rowspan="1">
									<div class="status">
										<span class="order-status"><span style="color:#999"></span></span><br>
										<a href="" >订单详情</a>
									</div>
								</td>
								<td rowspan="1">
									<div class="operate">
										<p><a href="javascript:void(0);" class="btn-del"><i class="icon-trash"></i><?php if($v['pay_status'] == '否'): ?>
									<a href="">查看</a> | <a href="">取消定单</a>
								<?php endif; ?></a></p>
									</div>
								</td>
							</tr>
							<?php endforeach; ?>
							<!--订单商品-->
						</tbody>
					</table>
				</div>
				<!--page-->
				<!--分页-->
				<div class="page_list margin_top20">
					<div class="page_r">
					<?php echo $data['page']; ?>
						
					</div>
				</div>
				<!--分页end-->
				<!--pageend-->
			</div>
		</div>
	   